package com.example.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

@Component
public class CustomInitializingBean implements InitializingBean {

    private static final Logger logger = LoggerFactory.getLogger(CustomInitializingBean.class);

    @Override
    public void afterPropertiesSet() throws Exception {
        logger.info("Initializing CustomInitializingBean");
        // 自定义初始化逻辑
    }
}
